<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
	<title>添加用户</title>
	<jsp:include page="/layout/_imports.jsp"></jsp:include>
</head>
<body>
<jsp:include page="/layout/_nav.jsp"></jsp:include>
<div class="container">
	<h2>编辑用户</h2>

	<form action="/user" method="post">
		<input type="hidden" name="state" value="add">

		<div class="form-group row">
			<label class="col-sm-2" for="UserName">用户名</label>
			<div class="col-sm-10">
				<input class="form-control" id="UserName" type="text" name="username">
			</div>
		</div>

		<div class="form-group row">
			<label class="col-sm-2" for="Pwd">密码</label>
			<div class="col-sm-10">
				<input class="form-control" id="Pwd" type="password" name="pwd">
			</div>
		</div>

		<div class="form-group row">
			<label class="col-sm-2" for="Repwd">重复密码</label>
			<div class="col-sm-10">
				<input class="form-control" id="Repwd" type="password" name="repwd">
			</div>
		</div>

		<div class="form-group row">
			<label for="Email" class="col-sm-2">email</label>
			<div class="col-sm-10">
				<input class="form-control" id="Email" type="text" name="email">
			</div>
		</div>

		<div class="form-group row">
			<label for="Name" class="col-sm-2">姓名</label>
			<div class="col-sm-10">
				<input class="form-control" id="Name" type="text" name="name">
			</div>
		</div>

		<div class="form-group row">
			<label for="Mobile" class="col-sm-2">手机号</label>
			<div class="col-sm-10">
				<input class="form-control" id="Mobile" type="text" name="mobile">
			</div>
		</div>

		<div class="form-group row">
			<label class="col-sm-2">性别</label>
			<div class="col-sm-10">
				<select class="form-control" name="sex">
					<option value="1" selected>男</option>
					<option value="0">女</option>
					<option value="2">保密</option>
				</select>
			</div>
		</div>

		<div class="form-group row">
			<label class="col-sm-2">管理员</label>
			<div class="col-sm-10">
				<select class="form-control" name="admin">
					<option value="True">True</option>
					<option value="False" selected>False</option>
				</select>
			</div>
		</div>

		<button type="submit" class="btn btn-primary">添加</button>
		<a href="/user/manage" class="btn btn-secondary">返回列表</a>
</div>
</body>
</html>
